package com.un.ebs.sys.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.un.ebs.core.metadata.DbField;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * (Ent)表实体类
 *
 * @author makejava
 * @since 2021-03-31 14:35:58
 */
@Data
@Component
@TableName("sys_ent")
@SuppressWarnings("serial")
public class Ent extends Model<Ent> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;


    @DbField(name = "name", comment = "名称", length = 255, precision = 0)
    private String name;

    @DbField(name = "remark", length = 255, precision = 0)
    private String remark;

    @TableLogic
    @DbField(name = "is_delete", length = -1, precision = 0)
    private Boolean isDelete;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at", length = 40, precision = 0)
    private String createAt;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_time", length = -1, precision = 0)
    private Date createTime;

    @TableField(fill = FieldFill.UPDATE)
    @DbField(name = "last_modified_at", length = 40, precision = 0)
    private String lastModifiedAt;

    @TableField(fill = FieldFill.UPDATE)
    @DbField(name = "last_modified_time", length = -1, precision = 0)
    private Date lastModifiedTime;

    @DbField(name = "industry_type", length = -1, precision = 0)
    private Integer industryType;

    @DbField(name = "province_id", length = -1, precision = 0)
    private Integer provinceId;

    @DbField(name = "city_id", length = -1, precision = 0)
    private Integer cityId;

    @DbField(name = "county_id", length = -1, precision = 0)
    private Integer countyId;

    @DbField(name = "province_name", length = 100, precision = 0)
    private String provinceName;

    @DbField(name = "city_name", length = 100, precision = 0)
    private String cityName;

    @DbField(name = "county_name", length = 100, precision = 0)
    private String countyName;

    @DbField(name = "bank_name", length = 100, precision = 0)
    private String bankName;

    @DbField(name = "bank_account", length = 50, precision = 0)
    private String bankAccount;

    @DbField(name = "corp_addres", length = 200, precision = 0)
    private String corpAddres;

    @DbField(name = "tel", length = 20, precision = 0)
    private String tel;

    @DbField(name = "tax_no", length = 50, precision = 0)
    private String taxNo;

    @DbField(name = "tax_rate")
    private Double taxRate;

    @DbField(name = "wx_app_id", length = 100, precision = 0)
    private String wxAppId;

    @DbField(name = "wx_app_secret", length = 100, precision = 0)
    private String wxAppSecret;

    @DbField(name = "wx_token", length = 100, precision = 0)
    private String wxToken;

    @DbField(name = "wx_mach_id", length = 100, precision = 0)
    private String wxMachId;

    @DbField(name = "wx_mach_key", length = 100, precision = 0)
    private String wxMachKey;

    @DbField(name = "wx_key_path", length = 100, precision = 0)
    private String wxKeyPath;

    @DbField(name = "wx_ma_app_id", length = 100, precision = 0)
    private String wxMaAppId;

    @DbField(name = "wx_ma_secret", length = 100, precision = 0)
    private String wxMaSecret;

    @DbField(name = "wx_ma_token", length = 100, precision = 0)
    private String wxMaToken;

    @DbField(name = "wx_ma_ase_key", length = 100, precision = 0)
    private String wxMaAseKey;

    @DbField(name = "wx_cp_corp_id", length = 100, precision = 0)
    private String wxCpCorpId;

    @DbField(name = "wx_cp_corp_secret", length = 100, precision = 0)
    private String wxCpCorpSecret;

    @DbField(name = "wx_cp_agent_id", length = 100, precision = 0)
    private String wxCpAgentId;

    @DbField(name = "wx_cp_token", length = 100, precision = 0)
    private String wxCpToken;

    @DbField(name = "wx_cp_ase_key", length = 100, precision = 0)
    private String wxCpAseKey;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}